-
-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce response decoder interface #49
Conversation
@dghubble would it be possible to get feedback on the PR, it would be a very useful feature in my case. Thanks! :-) Just noticed the build is failing for G 1.8, need to look into that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems agreeable to me. I've left some nitpicks about how its documented.
Also, you can rebase (and squash if needed after fixes) to resolve the CI failure.
43474e4
to
5ce5b3a
Compare
5ce5b3a
to
6d06265
Compare
Thanks for the feedback and corrections! I updated the PR & rebased. |
i bet this would come in handy ;) #47 |
@dghubble friendly bump :-) good to merge now? |
@dghubble may I ask to create a new release including above changes? 🙏 |
I use Sling to get data from JSON APIs, soon I will have the use case to receive data from XML APIs, too. Hence I suggest a way that allows decoding responses from arbitrary sources:
ResponseDecoder
interface that abstracts away the actual decodingjsonDecoder
that does what the library is doing at the moment: decoding from JSON (keep bc)Is there a chance of getting this merged?